home *** CD-ROM | disk | FTP | other *** search
/ Hráč 2004 August / Hrac_72_2004-08_dvd.iso / dema / Rapid Gun / rg_setup.exe / ipsc / testbed.sc < prev    next >
Text File  |  2004-04-19  |  405b  |  25 lines

  1. # a simple macro calling two, currently non-existing, macros
  2. macro a
  3.     alfa
  4.     beta
  5. mend
  6.  
  7. macro alfa
  8.     # nested macro definition
  9.     macro beta
  10.         # macro 'a' is re-defined
  11.         macro a
  12.             # parameter as a command/macro call
  13.             $1
  14.         mend
  15.     mend
  16. mend
  17.  
  18. macro x
  19. mend
  20.  
  21. # calls 'alfa', defines 'beta', calls 'beta' and re-defines 'a'
  22. a
  23. # calls new 'a', then calls 'x' supplied as its parameter
  24. a x
  25.